<?php
echo $this->headScript()->appendFile($this->basePath() . '/library/abcjs/abcjs_basic_1.4-min.js');
echo $this->headScript()->appendFile($this->basePath() . '/module/admin/song/edit/js/edit.js');
echo $this->headLink()->appendStylesheet($this->basePath() . '/module/admin/song/edit/css/edit.css');

$formmsg = $this->form->getMessages();
if($this->flashmsg)  {
	echo $this->helper()->makeFlashMsg($this->flashmsg);
}
?>
<form action="<?php echo $this->url('song', array('action'=>'edit'));?>"
	method="post">
<fieldset>
		<legend>Ajout d'un Song</legend>
		<div class="row-fluid">
			<fieldset class="span2">
				<div>
					<?php 
					echo $this->formElement($this->form->get('id')) ;
					?>
				</div>
				<div
					class="control-group <?php if(!empty($formmsg['title'])) echo 'error'?>">
					<?php 
					echo $this->formLabel($this->form->get('title'));
					echo $this->formElement($this->form->get('title'));
					?>
				</div>
				<div
					class="control-group <?php if(!empty($formmsg['date_create'])) echo 'error'?>">
					<?php 
					echo $this->formLabel($this->form->get('date_create')) ;
					echo $this->formElement($this->form->get('date_create')) ;
					?>
				</div>
				<div
					class="control-group <?php if(!empty($formmsg['date_update'])) echo 'error'?>">
					<?php 
					echo $this->formLabel($this->form->get('date_update')) ;
					echo $this->formElement($this->form->get('date_update')) ;
					?>
				</div>
				<div
					class="control-group <?php if(!empty($formmsg['state'])) echo 'error'?>">
					<?php 
					echo $this->formLabel($this->form->get('state')) ;
					echo $this->formElement($this->form->get('state')) ;
					?>
				</div>
				<div
					class="control-group <?php if(!empty($formmsg['user_id'])) echo 'error'?>">
					<?php 
					echo $this->formElement($this->form->get('user_id')) ;
					?>
				</div>
			</fieldset>
			<fieldset class="span9">
				<div
					class="control-group <?php if(!empty($formmsg['abc'])) echo 'error'?>">
					<?php 
					echo $this->formLabel($this->form->get('abc'));
					echo $this->formTextarea($this->form->get('abc'));
					?>
				</div>
			</fieldset>
		</div>
	</fieldset>
	<fieldset class="form-actions">
		<?php echo $this->formRow($this->form->get('submit')) ?>
		<?php echo $this->formRow($this->form->get('submitquit')) ?>
		<?php echo $this->formRow($this->form->get('render')) ?>
	</fieldset>
</form>

<div id="myModal" class="modal hide modal-big" tabindex="-1" role="dialog">
	<div class="modal-body">
		<div class="control-group">
			<div id="midi"></div>
		</div>
		<div class="control-group">
			<div id="note"></div>
		</div>
	</div>
</div>
